vcStatisticsChart

vcStatisticsChart is an object type for plotting and graphing the data of reported items in a chart.

See in: Overview

Module: vcCore

Parent: vcObject

Children -

Referenced by: vcStatisticsSeries.ParentChart, vcStatisticsTab.SelectedChart, vcStatisticsTab.createChart()

Properties

Learn how to use properties here. The properties are also inherited from the parent class.

NameTypeAccessDescription
AllSourceslistRGets all sources of reported items, including their components.
See more
A reported item is a vcProperty object associated with a component. For example, a reported item could be a component property or a property of a component behavior.

A vcVector object is used to define the display color of reported item in chart.

Each element in the list is a list that contains these elements : vcProperty property, String expression, vcComponent component, vcVector color, Double thickness);
ChartTypevcChartTypeRWGets or sets the chart type.
DataRowslistRGets the data collected during a simulation from reported items.
See more
Each element in the list is a list that contains these elements : Double simulationTime, Double value1, ... Double valueN
DataTypevcChartDataTypeRWGets or sets the data type of the chart.
FieldCountPerPropertyIntegerRGets the field count of items reported by chart.
LegendVisibilityBooleanRWGets or sets the value defining if chart legend is visible.
NameStringRWGets or sets the title of the chart.
PositionlistRWGets or sets the position of the chart in tab grid.
See more
The list contains these elements : String name, Integer column, Integer row, Integer columnSpan, Integer rowSpan.

Exceptions:
ValueError: When the given list contains an invalid value.
RecordAccumulatedValuesBooleanRWGets the value defining if collection of data reported by chart is enabled.
SamplingIntervalRealRWGets the value defining how often (in seconds) the chart updates to show recorded data during a simulation. If -1, the chart uses the sampling interval of its dashboard.
SerieslistRGets a list of data series used by chart to report items.
TileTypevcChartTileTypeRGets the location type of chart, thereby indicating whether the tile is an empty or filled with a chart.
See more
Generally, you would use TileType to parse through several charts in a dashboard to collect data from charts that report items. For example, you could ignore or skip empty tiles.
TitleVisibilityBooleanRWGets or sets the value defining if chart title is visible.

Methods

Learn how to use methods here. The methods are also inherited from the parent class.

NameReturn TypeParametersDescription
clearDataNoneNoneRemoves all data reported by chart, thereby emptying DataRows.
clearSeriesNoneNoneResets all data series in chart, thereby emptying AllSources.
createSeriesvcStatisticsSeriesNoneCreates and adds a new data series to the chart.

Returns:
vcStatisticsSeries: The created statistics series.
deleteNoneNoneDeletes this chart.
updateNoneNoneRefreshes the chart.